package com.firstgroup.dms.mapper;

import com.firstgroup.dms.pojo.Sale;
import com.firstgroup.dms.pojo.SaleDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SaleMapper {
    List<Sale> getAllSales();

    int deleteSale(Integer id);

    void insertSale(Sale sale);

    void deleteSaleDetail(Integer saleId);

    void insertSaleDetail(SaleDetail detail);

    // 获取药品出库总数量
    Integer getOutStockQuantity(Integer drugId);
}